//C:7.16:recur.cpp -- using recursion
#include <iostream>
void countdown(int n);

int main(void)
{
    countdown(4);
    return 0;
}

void countdown(int n)
{
    using namespace std;
    cout << "Counting down ... " << n << " (n at " << &n  << ")" << '\n';
    if(n > 0)
    {
        countdown(n - 1);    // function calls itself
    }
    cout << n << ": Kaboom!:" << " (n at " << &n  << ")" << "\n";
}